import Vue from 'vue';
export const bus = new Vue();

export const busEventHandle = (event, callback) => {
    bus.$off(event);
    bus.$on(event,callback);
}

export const busEventEmit = (event,data) => {
    bus.$emit(event,data);
}